/**
 * Created by zz on 2017/4/24.
 */

var $code = $(".zz-code");
var $phone_code = $(".zz-phone-code");
var $code_num = $(".zz-code-num");
var $verification_code = $(".zz-verification-code");
var $payee_name = $(".zz-payee-name");
var $id_num = $(".zz-id-num");
var $store_select = $(".zz-store-list .zz-select");
var $billList = $(".zz-bill-list ul>li");
var $bank_code = $(".zz-bank-code");
var $delete_icon = $(".zz-delete-icon");
var $explain_icon = $(".zz-explain-icon");
var $explain = $(".zz-explain");
var $mask = $(".zz-mask");
var $pay = $(".zz-pay");
var $know = $(".zz-know");
var $check = $(".zz-check");
var $footer = $(".footer");

//鍔ㄦ�璁＄畻rem锛宺esize鐨勬椂鍊欏湪鎵ц涓�
utils.countRem();
$(window).resize(function () {
    utils.countRem();
});

//utils.hideMenu();

$explain_icon.click(function () {
    $explain.show();
    $mask.show();
});
$know.click(function () {
    $explain.hide();
    $mask.hide();
});

//鎵嬫満鍙�44
$phone_code.blur(function () {
    var $this = $(this);
    $this.val(utils.phoneFormat($this.val()));
});

//鎵嬫満focus鐨勬椂鍊�鍘婚櫎绌烘牸
$phone_code.focus(function () {
    var $this = $(this);
    var s = utils.removeSpace($this.val());
    $this.val(s);
});
//閾惰鍗lur鐨勬椂鍊�鍥涗綅鍔犵┖鏍�
$bank_code.blur(function () {
    var $this = $(this);
    $this.val(utils.cardFormat($this.val()));
});

//閾惰鍗ocus鐨勬椂鍊�鍘婚櫎绌烘牸
$bank_code.focus(function () {
    var $this = $(this);
    var s = utils.removeSpace($this.val());
    $this.val(s);
});

/*var mateCacheStr = '';
$(window).ready(function (){
    $("link").each(function (){
        $(this).attr("href",$(this).attr("href")+"?" + new Date().getTime());
    });
    $("script").each(function (){
        if($(this).attr("src")){
            $(this).attr("src",$(this).attr("src")+"?" + new Date().getTime());
        }
    });
    
    mateCacheStr+='<meta http-equiv="Expires" content="0">';
    mateCacheStr+='<meta http-equiv="Pragma" content="no-cache">';
    mateCacheStr+='<meta http-equiv="Cache-control" content="no-cache">';
    mateCacheStr+='<meta http-equiv="Cache" content="no-cache">';
    $("title").before(mateCacheStr);
});*/


